package com.tensquare.article.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment implements Serializable {

    @Id
    private String _id;             //ID
    private String articleid;       //文章ID
    private String content;         //评论内容
    private String userid;          //评论人ID
    private String parentid;        //评论ID      如果为0表示文章的顶级评论,
    private Date publishdate;       //评论日期
    private Integer thumbup;        //点赞数
    private Integer isdelete;        //是否删除 0为未删除；1为已删除
}
